{% extends 'layout.html' %}
{% block title %}换电过程特征{% endblock %}
{% block content %}
<div class="container">
    <div class="row">
        <div class="col" align="center">
            <h2>{{station.station_name}}</h2>
            <table class = "table table-striped">
                <tr>
                    <td>换电站编号：{{station.station_id}}</td>
                    <td>车辆rfid：{{service.rfid_code}}</td>
                </tr>
                <tr>
                    <td>车辆vin：{{service.vin}}</td>
                    <td>车牌号码：{{service.plate_number}}</td>
                </tr>
                <tr>
                    <td>开始换电时间：{{service.start_time}}</td>
                    <td>结束换电时间：{{service.stop_time}}</td>
                </tr>
                <tr>
                    <td>换电类型：{{service.swap_type}}</td>
                    <td>换电模式：{{service.swap_mode}}</td>
                </tr>
            </table>
        </div>
    </div>
    <div class="row">
        <div class="col" align="center">
            {% if features %}
                <table class="table table-striped">
                    <tr>
                        <th>物理量</th>
                        <th>统计方法</th>
                        <th>特征值</th>
                    </tr>
                    {% for feature in features %}
                        <tr>
                            <td>{{ feature.physical_quantity }}</td>
                            <td>{{ feature.statistical_method }}</td>
                            <td>{{ feature.feature_value }}</td>
                        </tr>
                    {% endfor %}
                </table>
            {% else %}
                <p>未查询到本次换电的特征</p>
            {% endif %}
        </div>
    </div>
</div>
{% endblock %}